#include "resultStruct.h"


using namespace std;

int main()
{
        //Json_file=fopen("Json_file","w");
	m_flagMetric=4;
        Result result;
	int i;
        result.m_nw[0]=42.345356;
        result.m_nw[1]=49.2345;
	result.m_se[0]=34.091243;
        result.m_se[1]=45.124435;
       
	result.m_routes.clear();
	Routes dummyRoute1;
	dummyRoute1.m_comm.m_distance = 2400;
	dummyRoute1.m_comm.m_time = 324;
        dummyRoute1.m_comm.m_startLoc[0]=23.4567;
	dummyRoute1.m_comm.m_startLoc[1]=34.5657;
	dummyRoute1.m_comm.m_endLoc[0]=34.124;
	dummyRoute1.m_comm.m_endLoc[1]=24.5657;

	
	dummyRoute1.m_legs.clear();
	Leg dummyLeg1;
       dummyLeg1.m_comm.m_distance = 2400;
        dummyLeg1.m_comm.m_time = 324;
       dummyLeg1.m_comm.m_startLoc[0]=23.4567;
        dummyLeg1.m_comm.m_startLoc[1]=34.5657;
        dummyLeg1.m_comm.m_endLoc[0]=34.124;
        dummyLeg1.m_comm.m_endLoc[1]=24.5657;

	dummyLeg1.m_steps.clear();
        Step dummyStep1;
        dummyStep1.m_comm.m_distance = 2400;
        dummyStep1.m_comm.m_time = 324;
        dummyStep1.m_comm.m_startLoc[0]=23.4567;
        dummyStep1.m_comm.m_startLoc[1]=34.5657;
        dummyStep1.m_comm.m_endLoc[0]=34.124;
        dummyStep1.m_comm.m_endLoc[1]=24.5657;

	dummyLeg1.m_steps.push_back(dummyStep1);
	dummyRoute1.m_legs.push_back(dummyLeg1);
	result.m_routes.push_back(dummyRoute1);
	
//	result.m_routes.clear();
        Routes dummyRoute;
        dummyRoute.m_comm.m_distance = 2400;
        dummyRoute.m_comm.m_time = 324;
        dummyRoute.m_comm.m_startLoc[0]=23.4567;
        dummyRoute.m_comm.m_startLoc[1]=34.5657;
        dummyRoute.m_comm.m_endLoc[0]=34.124;
        dummyRoute.m_comm.m_endLoc[1]=24.5657;


        //dummyRoute.m_legs.clear();
        Leg dummyLeg;
       dummyLeg.m_comm.m_distance = 2400;
        dummyLeg.m_comm.m_time = 324;
       dummyLeg.m_comm.m_startLoc[0]=23.4567;
        dummyLeg.m_comm.m_startLoc[1]=34.5657;
        dummyLeg.m_comm.m_endLoc[0]=34.124;
        dummyLeg.m_comm.m_endLoc[1]=24.5657;

        //dummyLeg.m_steps.clear();
        Step dummyStep;
        dummyStep.m_comm.m_distance = 2400;
        dummyStep.m_comm.m_time = 324;
        dummyStep.m_comm.m_startLoc[0]=23.4567;
        dummyStep.m_comm.m_startLoc[1]=34.5657;
        dummyStep.m_comm.m_endLoc[0]=34.124;
        dummyStep.m_comm.m_endLoc[1]=24.5657;

	 dummyLeg.m_steps.push_back(dummyStep);
        dummyRoute.m_legs.push_back(dummyLeg);
        result.m_routes.push_back(dummyRoute);


	result.print();
}
